package com.example.gmallproduct.feign;


import com.common.to.SkuReductionTo;
import com.common.to.SpuBoundsTo;
import com.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 远程调用GMALL-coupon
 */
@FeignClient("GMALL-coupon")
public interface CouponFeignService {

    @RequestMapping("/gmallcoupon/skubounds/save")
    R saveSpuBounds(@RequestBody SpuBoundsTo spuBoundsTo);

    @PostMapping("/gmallcoupon/coupon/save/info")
    R saveSkuReductionInfo(@RequestBody SkuReductionTo skuReductionTo);
}
